﻿@font-face {
    font-family: '微软雅黑';
    src: url('res://ConsoleApp1/msyh.ttc');
}
/*设计模式下有效*/
@media DesignMode {
        * {
        FontFamily: '微软雅黑';
    }
}

@media windows {
    * {
        FontFamily: '微软雅黑'; /*不同系统的字体不同，自己根据情况改或者使用内嵌字体*/
    }
}

@media osx {
    * {
        FontFamily: '苹方-简';
    }
}

@media linux {
    * {
        FontFamily: 'sans-serif';
    }
}
.Test.Single{

}
DataGridCellTemplate, DataGridRow {
    BorderFill: #f00 !important;
}
#caption {
    Background: #00000000;
}

#frame {
    /*Background: url(');*/
    Background: rgb(75,178,255);
}

#headBorder {
    Background: #00000000;
    BorderFill: #00000000;
}

#mainTab #headerPanel {
    Width: 150;
}

TabItemTemplate TextBlock {
    MarginLeft: 0;
    Foreground: #fff;
    FontSize: 14;
}

TabItemTemplate[IsSelected=true] > Border {
    Background: #00000040;
    BorderFill: #00000000;
}

@keyframes tabItemMouseLeave {
    0% {
        Background: #00000040;
    }

    100% {
        Background: #00000000;
    }
}

TabItemTemplate[IsMouseOver=false] {
/*    Background: #00000040;*/
    animation-name: tabItemMouseLeave;
    animation-duration: 0.2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

TabItemTemplate[IsMouseOver=true] {
    Background: #00000040;
}

@keyframes buttonAnimationEnter {
    0% {
        Background: #1E9FFF;
    }

    100% {
        Background: rgb(75,178,255);
    }
}

#DropDownPanel TextBlock {
    MarginLeft: 5;
}
Button {
    Background: #1E9FFF;
    Foreground: #fff;
    BorderFill: null;
}
Button.Test {
    Foreground: #f00;
}

    Button[IsMouseOver=true] {
        Background: #1E9FFF;
        animation-name: buttonAnimationEnter;
        animation-duration: 0.2s;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
    }

    Button[IsPressed=true] {
        Background: rgb(30,159,255);
    }

CheckBox #indeterminateMark {
    Fill: #1E9FFF;
}

CheckBox #checkBoxBorder {
    Background: #fff;
    BorderFill: #1E9FFF;
}

CheckBox[IsChecked=true] #checkBoxBorder {
    Background: #1E9FFF;
    BorderFill: #1E9FFF;
}

CheckBox Polyline {
    StrokeFill: #fff;
}

RadioButton #radioButtonBorder {
    StrokeFill: #1E9FFF;
}

RadioButton #optionMark {
    StrokeFill: #1E9FFF;
    Fill: #1E9FFF;
}

ComboBox {
    BorderFill: #1E9FFF;
    BorderStroke: 1;
    Background: #fff;
    UseLayoutRounding: true;
}

/*TextBox {
    BorderFill: #1E9FFF;
    BorderStroke: 1;
    UseLayoutRounding: true;
    Background: #00000000;
}

    TextBox #contentPresenter {
        Padding: 3;
    }*/

.Single { /*单行文本框*/
    AcceptsReturn: false;
    HScrollBarVisibility: Hidden;
    VScrollBarVisibility: Hidden;
}

TextBox ScrollBar {
    Background: #fff;
}

    TextBox ScrollBar Thumb {
        CornerRadius: 5;
    }

    TextBox ScrollBar[Orientation=Horizontal] {
        Height: 12;
    }

    TextBox ScrollBar[Orientation=Vertical] {
        Width: 12;
    }

    TextBox ScrollBar #PART_LineUpButton, TextBox ScrollBar #PART_LineDownButton {
        Visibility: Collapsed;
    }

@keyframes shadowEffect {
    0% {
        ShadowColor: #00000000;
    }

    100% {
        ShadowColor: #1E9FFF;
    }
}

#shadowEffect[IsKeyboardFocusWithin=true] {
    animation-name: shadowEffect;
    animation-duration: 0.2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

Window.Single{

}

Window>.Single{

}
/*[IsMouseOver=true]{

}*/
/*#testGrid {
    RenderTransform: rotate(20) skew(15,3) translate(100,200);
}*/

#controlBox #min Line {
    StrokeFill: #f00;
}
#controlBox #min[IsMouseOver=true] {
    Background: #808080;
}
#icon{
    Visibility:Collapsed;
}

TreeViewItem[Level=1] Panel{
    MarginLeft:15;
}

/*
DatePicker SVG {
    Fill: #f00;
}

DatePicker[IsMouseOver=true] SVG {
    Fill: #00f;
}*/
/*#testGrid {
    RowDefinitions-1-Height: '3*';
    RowDefinitions-0-Height: '*';
}*/

ListBoxItemTemplate[IsMouseOver=true]{
    Background:#f00;
}
ListBoxItemTemplate[IsSelected=true] {
    Background: #0ff !important;
}
ScrollBar Thumb[IsDragging=true] {
    Background:#f00;
}
ListBoxItemTemplate[AttachedExtenstions.AlternationIndex=1] {
    Background: #ff0;
}
DataGridRowTemplate[AttachedExtenstions.AlternationIndex=1] {
    Background: #ff0;
}
DataGridRowTemplate[IsSelected=true]{
    Background: #00000040 !important;
}